# 倒序输出字符串（实现方式2）
s = input("请输入一段文本")
i = -1
while i >= -1*len(s):
    print(s[i],end = "")
    i = i-1
